import request from '@/utils/request'
export function getEmployees(params) {
  return request({
    url: '/api/Case/CaseIncome/GetEmployees',
    method: 'get',
    params
  })
}

export function getIncomes(params) {
  return request({
    url: '/api/Case/CaseIncome/GetCaseIncomes',
    method: 'get',
    params
  })
}

export function calculateCaseIncomes(caseId) {
  return request({
    url: '/api/Case/CaseIncome/CalculateCaseIncomes',
    method: 'get',
    params: { caseId }
  })
}

export function addIncome(data) {
  return request({
    url: '/api/Case/CaseIncome/AddIncome',
    method: 'post',
    data
  })
}

export function editIncome(data) {
  return request({
    url: '/api/Case/CaseIncome/EditIncome',
    method: 'post',
    data
  })
}

export function deleteIncome(id) {
  return request({
    url: '/api/Case/CaseIncome/DeleteIncome',
    method: 'get',
    params: {
      id
    }
  })
}

export function incomeSure(caseId) {
  return request({
    url: '/api/Case/CaseIncome/IncomeSure',
    method: 'get',
    params: {
      caseId
    }
  })
}

export function incomeUnsure(caseId) {
  return request({
    url: '/api/Case/CaseIncome/incomeUnsure',
    method: 'get',
    params: {
      caseId
    }
  })
}
export function incomeMark(caseId) {
  return request({
    url: '/api/Case/CaseIncome/IncomeMark',
    method: 'get',
    params: {
      caseId
    }
  })
}

export function getIncomeTypes() {
  return request({
    url: '/api/Case/CaseIncome/GetIncomeTypes',
    method: 'get',
  })
}

export function getCaseBaseSum(caseId) {
  return request({
    url: '/api/Case/CaseIncome/GetCaseBaseSum',
    method: 'get',
    params: { caseId }
  })
}